package com.homedo.odin.solution.model.request.mng.adservings;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import lombok.Data;

@ApiModel(description = "广告列表")
@JsonIgnoreProperties(ignoreUnknown = true)
@Data
public class MngAdServingsListRequestBean {

    @ApiModelProperty(value = "上架时间开始值", required = false)
    private String shelveTimeStart;

    @ApiModelProperty(value = "上架时间结束值", required = false)
    private String shelveTimeEnd;


    @ApiModelProperty(value = "当前页码", required = true)
    @NotNull(message = "当前页码参数不能为null")
    @Min(value = 0, message = "当前页码非法参数")
    private Integer pageNum;

    @ApiModelProperty(value = "当前页数量", required = true)
    @NotNull(message = "当前页数量不能为null")
    @Min(value = 0, message = "当前页数量参数错误")
    private Integer pageSize;
}
